<template>
	<view class="grouperDrawcash">
		<view class="input_cash_box">
			<view class="fn-sz-2040 fn-cl-666666 mar-bottom-20">提现金额</view>
			<view class="input_cash_num_box"><input type="text" v-model="drawCashObj.money" /></view>
		</view>
		<view class="cash_tags">温馨提示：申请提现后需等待平台审核，审核周期为2~3个工作日，审核通过后即会转款至您的微信零钱包。</view>
		<button class="yellow_btn" @tap="comfirmCash">确认提现</button>
	</view>
</template>

<script>
export default {
	data() {
		return {
			drawCashObj: {
				money: '',
				openid: 'wxa19ee8817b5a1ea5'
			}
		};
	},
	methods: {
		comfirmCash() {
			this.$api.withdraw(this.drawCashObj).then(res => {
				this.$helper.toast(res.msg);
				if (res.code == 1) {
					uni.navigateBack();
				}
			});
		}
	}
};
</script>

<style lang="scss">
.grouperDrawcash {
	padding: 24rpx;
	min-height: 100vh;
	background-color: #f9f9f9;
	box-sizing: border-box;

	.input_cash_box {
		background: #ffffff;
		border-radius: 20rpx;
		padding: 40rpx 40rpx 28rpx;
		margin-bottom: 30rpx;
		.input_cash_num_box {
			padding-bottom: 15rpx;
			border-bottom: 1rpx solid #eeeeee;
			input {
				height: 120rpx;
				font-size: 90rpx;
				color: #333;
			}
		}
	}
	.cash_tags {
		font-size: 26rpx;
		font-weight: 400;
		color: #666666;
		margin-bottom: 76rpx;
	}
}
</style>
